package com.muyu.day3zy.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName PromotionInfo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 16:57
 */
public class PromotionInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 商品促销id */
    @Excel(name = "商品促销id", cellType = Excel.ColumnType.NUMERIC)
    private Integer id;

    /** 赠送积分 */
    @Excel(name = "赠送积分")
    private Integer points;

    /** 赠送成长值 */
    @Excel(name = "赠送成长值")
    private Integer growthValue;

    /** 积分购买限制 */
    @Excel(name = "积分购买限制")
    private Integer restrict;

    /** 详细页标题 */
    @Excel(name = "详细页标题")
    private String title;

    /** 详细页描述 */
    @Excel(name = "详细页描述")
    private String description;

    /** 商品备注 */
    @Excel(name = "商品备注")
    private String remark;

    /** 优惠方式id */
    @Excel(name = "优惠方式id")
    private Integer discountsId;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /** 优惠方式id */
    @Excel(name = "优惠方式id")
    private Integer productId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getGrowthValue() {
        return growthValue;
    }

    public void setGrowthValue(Integer growthValue) {
        this.growthValue = growthValue;
    }

    public Integer getRestrict() {
        return restrict;
    }

    public void setRestrict(Integer restrict) {
        this.restrict = restrict;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDiscountsId() {
        return discountsId;
    }

    public void setDiscountsId(Integer discountsId) {
        this.discountsId = discountsId;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("points", getPoints())
                .append("growthValue", getGrowthValue())
                .append("restrict", getRestrict())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("remark", getRemark())
                .append("discountsId", getDiscountsId())
                .append("productId",getProductId())
                .toString();
    }
}
